package com.zaydanwu.cla.dao;

import com.zaydanwu.cla.model.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Long commentId);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Long commentId);

    List<Comment> selectAll(@Param("newId") Integer newId);

    int selectCount(@Param("newId") Integer newId);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);
}